package sicnu.cs.ich.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import sicnu.cs.ich.api.domain.entity.ActivityParticipate;
import sicnu.cs.ich.api.domain.entity.UserInfo;
import sicnu.cs.ich.api.domain.vo.UserInfoVo;

import java.util.List;

/**
 * @author 黎琦
 * @date 2021/12/20 20:06
 **/
@Mapper
public interface ActivityParticipateMapper extends BaseMapper<ActivityParticipate> {
    /**
     * 通过aid获取未通过参与者列表
     *
     * @param aid
     * @return
     */
    List<UserInfoVo> getUserListByAid(Integer aid);

    /**
     * 批量更改活动参与者状态
     * @param list
     */
    void updateStatus(List<ActivityParticipate> list);
}
